package com.ikun.controller;

import com.ikun.pojo.TbNotice;
import com.ikun.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class NoticeController {

    @Autowired
    NoticeService noticeService;

    @RequestMapping("selNotice")
    @ResponseBody
    public TbNotice selNotice(HttpServletRequest request, HttpServletResponse response){
        TbNotice tbNotice = noticeService.selNotice();
        return tbNotice;
    }

}
